package com.taptech.doufu.ui.activity

import android.os.Bundle
import com.taptech.doufu.R
import com.taptech.doufu.constant.IntentKey
import com.taptech.doufu.ui.activity.base.DiaobaoBaseActivity
import com.taptech.doufu.ui.fragment.CategoryFragment

class NovelCategoryActivity :DiaobaoBaseActivity(){


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_category)
        val sexType = intent.getStringExtra(IntentKey.INTENT_KEY_SEX_TYPE)
        val fragmentTransient = supportFragmentManager.beginTransaction()
        fragmentTransient.add(R.id.layContent,CategoryFragment.newInstance("http://api.doufu.la/entrance_item/novel_category",
            sexType.toString(),true))
        fragmentTransient.commit()

    }



}